package sctu.edu.java.year2016.team04.baiyunfei.day20160529.chapter8_1;

/**能否实现抽象类的实例化
 * Created by DE on 2016/5/30.
 */
public class RedCar extends Car{
    @Override
    public void color(){
        System.out.println("this car is red");
    }

    public static void main(String[] args) {
        System.out.println("调用RedCar的color（）方法结果");
        // Car car1=new Car();  抽象类不能创建其对象

        RedCar RedBMW=new RedCar();
        RedBMW.color();

    }
}
